#!/usr/bin/env python
# encoding: utf-8
# @Time    : 2019/10/11 15:53
# @Author  : ZRD
# @Site    :
# @File    : hprose_server.py
# @Software: PyCharm

import hprose


def hello(name):
    return 'Hello %s!' % name


def main():
    server = hprose.HttpServer(port=8181)
    server.addFunction(hello)
    server.debug=False
    server.start()


if __name__ == '__main__':
    main()
